package com.example.basic.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.example.basic.util.DateConverter;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author mjw
 * @date 2022/9/8
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Role {

    @ApiModelProperty("名字")
    @ExcelProperty({"名字", "name"})
    private String name;

    @ApiModelProperty("年龄")
    @ExcelProperty({"年龄", "age"})
    private Integer age;

    @ExcelProperty(value = {"出生日期", "birth"}, converter = DateConverter.class)
    private Date birth;
}
